﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<table>
    <tr>
        <td>
            <%= Html.DropDownList(String.Format("{0}DepartmentSource", Model))%>
        </td>
    </tr>
    <tr>
        <td id='<%= String.Format("{0}GroupContainer", Model) %>'>
            <table class="data-table">
                <thead>
                    <tr>
                        <th>
                            &nbsp
                        </th>
                        <th class="top">
                            Group
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <% For Each group As Equipment.DataAccess.Group In ViewData(String.Format("{0}Groups", Model))%>
                    <tr>
                        <td>
                            <%= Html.CheckBox(String.Format("cbx{1}Group_{0}", group.ID, Model), ViewData(String.Format("Selected{1}Group_{0}", group.ID, Model)) IsNot Nothing)%>
                        </td>
                        <td>
                            <%: group.Description%>
                        </td>
                    </tr>
                    <% Next%>
                </tbody>
            </table>
        </td>
    </tr>
</table>